package com.hoshiicloud.common.constant.refund;

/**
 * @author qry
 * @date 2019/8/22 18:52
 *
 * refundOrder 的serviceType
 */
public enum  RefundTypeEnum {
    IN_SALE(1,"售中"),
    AFTER_SALE(2,"售后");
    private int code;

    private String name;

    RefundTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public static String getRefundTypeType(int code){
        for (RefundTypeEnum aparameterStatus : values()) {
            if (aparameterStatus.getCode() == code) {
                return aparameterStatus.getName();
            }
        }
        return "未匹配到";
    }

}
